import request from '@/utils/request'

// 列表
export function GetListAPI(params) {
  return request({
    url: '/quality/checkDoc/list',
    method: 'GET',
    params
  })
}

// 查看 详情
export function GetDetailsAPI(params) {
  return request({
    url: '/quality/checkDoc/' + params,
    method: 'GET'
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/quality/checkDoc',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/quality/checkDoc/edit',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/quality/checkDoc/' + data,
    method: 'DELETE'
  })
}

// 编码配置列表
export function GetCodeListAPI(query) {
  return request({
    url: '/system/ofcode/list',
    method: 'get',
    params: query
  })
}
